public class Code010 {
	public static void main(String[] args) {
		for (int j = 0; j <10; j++) {		
		for (int i = 0; i < 16; i++) {
			if((j>0&&j<4)||(j>4&&j<9)){
				if((i>8&&i<15)||(i>0&&i<8)){
				System.out.print(" ");
				continue;
				}
				if((j>0&&j<4&&i==0)||(j>4&&j<9&&i==15)){
					System.out.print(" ");
					continue;
					}
			}	
			if((j<1&&(i>8&&i<15))||(j>8&&(i>0&&i<8))){
				System.out.print(" ");
				continue;
				}
			System.out.print("*");
			
		}
		
		System.out.println();
		}
		
		
		
	}

}
